package com.douqu.game.core.factory;


import com.douqu.game.core.protobuf.SGCommonProto;
import com.douqu.game.core.util.LogUtils;
import com.douqu.game.core.util.StringUtils;

import java.lang.reflect.Field;

/**
 * Created by bean on 2017/9/26.
 */
public class WordFactory {

    /** 请等待服务器初始化完成 */
    public final static String SERVER_IS_READY = "server_is_ready";
    /** 服务器正在更新,请稍候再试 */
    public final static String SERVER_IS_LOADING = "server_is_loading";
    /** 服务器开始维护,请稍候再进入游戏 */
    public final static String SERVER_IS_MAINTAIN = "server_is_maintain";
    /** 战斗服务器异常 */
    public final static String BATTLE_SERVER_ERROR = "battle_server_error";
    /** 正在验证中，请稍候 */
    public final static String APPSTORE_VERIFY_ING = "appstore_verify_ing";
    /** 活动服务器异常 */
    public final static String ACTIVITY_SEVER_ERROR = "activity_server_error";
    /** 你的账号已被冻结 */
    public final static String LOCK_ACCOUNT = "lock_account";
    /** 非法请求 */
    public final static String ILLEGAL_ERROR = "illegal_error";
    /** 参数错误 */
    public final static String PARAM_ERROR = "param_error";
    /** 名称存在 */
    public final static String NAME_EXIST = "name_exist";
    /** 你已经注册过账户了 */
    public final static String ACCOUNT_EXIST = "account_exist";
    /** 数据异常,请稍后再试 */
    public final static String SERVER_DATA_ERROR = "server_data_error";
    /** 名称过长 **/
    public final static String NAME_TOO_LONG = "name_too_long";
    /** 名称不能为空 **/
    public final static String NAME_NOT_EMPTY = "name_not_empty";
    /** 你的XX(资源)不足够哦 */
    public final static String ASSET_NOT_ENOUGH = "asset_not_enough";
    /** 你的XX(物品)不足够哦 */
    public final static String GOODS_NOT_ENOUGH = "goods_not_enough";
    /** v等级不足 */
    public final static String LEVEL_NOT_ENOUGH = "level_not_enough";
    /** 战斗中不允许进行此操作 */
    public final static String BATTLING_NOT_ALLOW = "battling_not_allow";
    /** 此对象不存在 */
    public final static String OBJECT_NOT_EXIST = "object_not_exist";
    /** CD时间未到 */
    public final static String CD_TIME_ERROR = "cd_time_error";
    /** 你已领取过此奖励 */
    public final static String GET_REWARD_ED = "get_reward_ed";
    /** 地图未解锁 */
    public final static String MAP_NOT_UNLOCK = "map_not_unlock";
    /** 地图解锁等级未达到 */
    public final static String MAP_UNLOCK_LV_NOT_TOUCH = "map_unlock_lv_not_touch";
    /** 你还没有获得此卡 */
    public final static String CARD_NOTHING_ERROR = "card_nothing_error";
    /** 此宝箱没有奖励可领取 */
    public final static String BOX_NOTHING_REWARD = "box_nothing_reward";
    /** 领取条件不满足 */
    public final static String CONDITION_ERROR = "condition_error";
    /** 能量不够 */
    public final static String ENERGY_NOT_ENOUGH = "energy_not_enough";
    /** 你没有这个技能 */
    public final static String SKILL_NOT_EXIST = "skill_not_exist";
    /** 竞技场挑战次数已经用完 */
    public final static String ARENA_TIMES_NOT_ENOUGH = "arena_times_not_enough";
    /** 竞技场挑战目标排位比自己低 */
    public final static String ARENA_TARGET_LOWER_THAN_ME = "arena_target_lower_than_me";
    /** 竞技场首次领奖需要在开服后的第二天才能领取 */
    public final static String ONLY_SECOND_DAYS_AFTER_TAKING_OFF = "only_second_days_after_taking_off";
    /** 竞技场每日奖励已经领取 */
    public final static String ARENA_DAILY_HAS_REWARD = "arena_daily_has_reward";
    /** 竞技场排名不够 */
    public final static String ARENA_RANK_NOT_ENOUGH = "arena_rank_not_enough";
    /** 竞技场兑换奖励组已经兑换过 */
    public final static String ARENA_REWARD_GROUP_ALREADY_REWARD = "arena_reward_group_already_reward";
    /** 竞技场不能扫荡比自己高的玩家 */
    public final static String ARENA_NOT_SWEEP_HEIGHT_PLAYER = "arena_not_sweep_height_player";
    /** 官阶战不能越级挑战 */
    public final static String OFFICIAL_NOT_JUMP_RANK_CHALLENGE = "official_not_jump_rank_challenge";
    /** 官阶战不能扫荡比自己高的玩家 */
    public final static String OFFICIAL_NOT_SWEEP_HEIGHT_PLAYER = "official_not_sweep_height_player";
    /** 官阶战挑战次数已经用完 */
    public final static String OFFICIAL_TIMES_NOT_ENOUGH = "official_times_not_enough";
    /** 官阶战每日奖励已经领取 */
    public final static String OFFICIAL_DAILY_HAS_REWARD = "official_daily_has_reward";
    /** 官阶战兑换奖励组已经兑换过 */
    public final static String OFFICIAL_REWARD_GROUP_ALREADY_REWARD = "official_reward_group_already_reward";
    /** 官阶战积分奖励组已经兑换过 */
    public final static String OFFICIAL_INTEGRAL_REWARD_GROUP_ALREADY_REWARD = "official_integral_reward_group_already_reward";
    /** 官阶战排名不够 */
    public final static String OFFICIAL_RANK_NOT_ENOUGH = "official_rank_not_enough";
    /** 官阶战积分不够 */
    public final static String OFFICIAL_INTAGRAL_NOT_ENOUGH = "official_integral_enough";
    /** 当前祭祀为空 */
    public final static String CURRENT_ALTAR = "current_altar_is_null";
    /** 当前次数受限 */
    public final static String CURRENT_NUM_LIMITATION = "current_num_limitation";
    /** 未达到领取奖励的条件 */
    public final static String FAILED_TO_MEET_THE_AWARD_CONDITIONS = "failed_to_meet_the_award_conditions";
    /** 当前的任务不存在 */
    public final static String CURRENT_TASK_IS_NULL = "current_task_is_null";
    /** 商店物品未刷新 */
    public final static String STORE_GOODS_NOT_REFRESH = "store_goods_not_refresh";
    /** 商店物品已经购买过 */
    public final static String STORE_GOODS_HAS_BUY = "store_goods_has_buy";
    /** 商店购买资金不足 */
    public final static String STORE_GOODS_MONEY_NOT_ENOUGH = "store_goods_money_not_enough";
    /**技能未解锁 */
    public final static String SKILL_UNLOCK = "skill_unlock";
    /**卡牌已升级到最高等级*/
    public final static String CARD_UPGRADED_HIGHEST_LEVEL = "card_upgraded_highest_level";
    /**经验道具不足够*/
    public final static String EXPERIENCE_PROPS_ARE_NOT_ENOUGH ="experience_props_are_not_enough";
    /**经验道具不存在*/
    public final static String EXPERIENCE_PROPS_IS_NULL ="experience_props_is_null";
    /**此宿命已激活*/
    public final static String CARD_FATE_HAS_BEEN_ACTIVATED ="card_fate_has_been_activated";
    /**此宿命不存在*/
    public final static String CARD_FATE_NOT_EXIST ="card_fate_not_exist";
    /**此卡牌不在宿命列表中*/
    public final static String CARD_NOT_FATE_LIST ="card_not_fate_list";
    /**背包中卡牌碎片不足够*/
    public final static String BAG_LVUPPROP_ARE_NOT_ENOUGH ="bag_lvupprop_are_not_enough";
    /**强化超过限制*/
    public final static String  EQUIPMENT_STRENGTHENING_OVERRUN = "equipment_strengthening_overrun";
    /**卡牌碎片不够*/
    public final static String  CARD_FRAGMENT_ARE_NOT_ENOUGH = "card_fragment_are_not_enough";
    /**饰品升级到最高等级不能在升级*/
    public final static String ACCESSORY_UPGRADED_HIGHEST_LEVEL = "accessory_upgraded_highest_level";
    /***英雄星级达到{0}星才能提升饰品等级**/
    public final static String CARD_STAR_ACHIEVE_ACCESSORY_LEVEL = "card_star_achieve_accessory_level";
    /**装备合成到最高等级不能在升级*/
    public final static String EQUIP_UPGRADED_HIGHEST_LEVEL = "equip_upgraded_highest_level";
    /**装备强化到最高等级不能在强化*/
    public final static String EQUIP_INTENSIFY_HIGHEST_LEVEL = "equip_intensify_highest_level";
    /** 卡牌等级不能大于主将等级 */
    public final static String CARD_NOT_GREATER_THAN_PLAYER_LV = "card_not_greater_than_player_lv";
    /** 装备等级不能大于主将等级得两倍 */
    public final static String EQUIP_NOT_GREATER_THAN_PLAYER_LV = "equip_not_greater_than_player_lv";
    /** 上阵卡组的卡片不能重生 */
    public final static String BATTLE_CARD_NOT_REBIRTH = "battle_card_not_rebirth";
    /** 卡片还未培养 */
    public final static String CARD_NOT_TRAIN = "card_not_train";
    /**您的军团最大只能上阵{0}个英雄*/
    public final static String CANNOT_BE_GREATER_THAN_THE_NUMBER_OF_CARRY = "cannot_be_greater_than_the_number_of_carry";
    /**您的军团最少必须上阵{0}个英雄*/
    public final static String CANNOT_BE_LESS_THAN_THE_NUMBER_OF_CARRY = "cannot_be_less_than_the_number_of_carry";
    /** 此卡牌已在战斗卡组 */
    public final static String CARD_IN_CARD_BATTLE_GROUP = "card_in_card_battle_group";
    /** 此卡牌不在战斗卡组 */
    public final static String CARD_NOT_IN_CARD_BATTLE_GROUP = "card_not_in_card_battle_group";
    /** 此饰品已激活 */
    public final static String ACCESSORY_HAS_BEEN_ACTIVATED = "accessory_has_been_activated";
    /** 英雄圣殿挑战次数不足 */
    public final static String HERO_TEMPLE_CHALLENGE_TIMES_NOT_ENOUGH = "hero_temple_challenge_times_not_enough";
    /** {0}功能未开放 */
    public final static String FUNCTION_NOT_OPEN = "function_not_open";
    /** 竞技场购买次数超限 */
    public final static String ARENA_BUY_CHALLENGE_TIME_OVERRUN = "arena_buy_challenge_time_overrun";
    /** vip礼包已经购买过了 */
    public final static String VIP_GIFT_BAG_ALREADY_BUY = "vip_gift_bag_already_buy";
    /** vip等级不足 */
    public final static String VIP_LEVEL_NOT_ENOUGH = "vip_level_not_enough";
    /** 月卡奖励已经领取过了 */
    public final static String MOUTH_CARD_HAS_REWARD_TODAY = "mouth_card_has_reward_today";
    /** 月卡未购买 */
    public final static String MOUTH_CARD_NOT_BUY = "mouth_card_not_buy";
    /** 签到天数已满 */
    public final static String DAILY_SIGN_FULL = "daily_sign_full";
    /** 邮件不存在*/
    public final static String MAIL_NOT_EXIST = "mail_not_exist";
    /** 附件已领取*/
    public final static String ANNEX_HAS_BEEN_RECEIVED = "annex_has_been_received";
    /** 基金已经购买过 **/
    public final static String FUND_HAS_BUY = "fund_has_buy";
    /** 基金还未购买过 **/
    public final static String FUND_HAS_NOT_BUY = "fund_has_not_buy";
    /** 首冲未完成*/
    public final static String FIRST_RECHARGE_NOT_COMPLETE = "first_recharge_not_complete";
    /** 首冲礼包已经领取过了*/
    public final static String FIRST_RECHARGE_HAS_RECEIVE = "first_recharge_has_receive";
    /** 用户不存在*/
    public final static String USER_DOES_NOT_EXIST = "user_does_not_exist";
    /**此用户已存在黑名单列表*/
    public final static String THIS_USER_HAS_A_LIST_OF_BLACKLISTS ="this_user_has_a_list_of_blacklists";
    /**此用户不在黑名单列表*/
    public final static String THIS_USER_IS_NOT_ON_A_LIST_OF_BLACKLISTS = "this_user_is_not_on_a_list_of_blacklists";
    /**配置不存在 */
    public final static String CONFIG_NOT_EXIST = "config_not_exist";
    /** 充值钻石不足 */
    public final static String RECHARGE_NOT_ENOUGH = "recharge_not_enough";
    /** 钻石消耗不足 */
    public final static String CONSUME_DIAMONDS_NOT_ENOUGH = "consume_diamonds_not_enough";
    /**您在该组CDK使用达到最大量**/
    public final static String CDK_USE_MAX_COUNT = "cdk_use_max_count";
    /**CDK不存在或者过期**/
    public final static String CDK_NOT_FIND_OR_EXPIRED = "cdk_not_find_or_expired";
    /**CDK已经被使用**/
    public final static String CDK_ALREADY_USE = "cdk_already_use";
    /**CDK未开启**/
    public final static String CDK_NOT_OPEN = "cdk_not_open";
    /**CDK已失效**/
    public final static String CDK_INVALID = "cdk_invalid";
    /**CDK使用服务器不符合**/
    public final static String CDK_SERVER_NOT_CONFORM = "cdk_server_not_conform";
    /**CDK使用用户角色创建时间太晚**/
    public final static String CDK_ROLE_CREATETIME_LATE = "cdk_role_createtime_late";
    /**CDK使用角色等级过低**/
    public final static String CDK_ROLE_LEVEL_LOW = "cdk_role_level_low";
    /**CDK使用渠道出错**/
    public final static String CDK_PLATFORM_ERROR = "cdk_platform_error";
    /**系统欢迎邮件标题*/
    public final static String WELCOME_SYSTEM_MAIL_TITLE = "welcome_system_mail_title";
    /**系统欢迎邮件内容*/
    public final static String WELCOME_SYSTEM_MAIL_CONTENT = "welcome_system_mail_content";
    /**手机号不合法*/
    public final static String INVALID_PHONE_NUMBER = "invalid_phone_number";
    /**英雄升星需要英雄等级*/
    public final static String HERO_ASCENDING_STARS = "hero_ascending_stars";
    /**饰品进阶需要卡牌星级{0}*/
    public final static  String ORNAMENTS_NEED_CARD_STAR_IN_ADVANCE= "ornaments_need_card_star_in_advance";
    /** 需要达到VIP{0} ，或玩家等级达到{1}级 */
    public final static String AUTO_BATTLE_VIP_LV = "auto_battle_vip_lv";
    /**远征重置次数不足*/
    public final static  String EXPEDITION_TIMES_NOT_ENOUGH= "expedition_times_not_enough";
    /**远征重置不允许，当前挑战层数为0*/
    public final static  String EXPEDITION_RESET_NOT_ALLOW= "expedition_reset_not_allow";
    /**远征购买次数达到最大值*/
    public final static  String EXPEDITION_BUY_TIMES_TOUCH_MAX= "expedition_buy_times_touch_max";
    /** 远征魔晶不够 */
    public final static String EXPEDITION_CRYSTAK_NOT_ENOUGH = "expedition_crystal_not_enough";
    /**远征BOSS还未召唤*/
    public final static String EXPEDITION_BOSS_NOT_CALL= "expedition_boss_not_call";
    /**远征挑战次数不足*/
    public final static String EXPEDITION_CHALLENGE_TIMES_NOT_ENOUGH= "expedition_challenge_times_not_enough";
    /**远征商店刷新次数不足*/
    public final static String EXPEDITION_STORE_FRESH_TIMES_NOT_ENOUGH= "expedition_store_fresh_times_not_enough";
    /**噩梦难度挑战副本*/
    public final static String UNLOCK_NIGHTMARE_COPY ="unlock_nightmare_copy";
    /**地狱难度挑战副本*/
    public final static String UNLOCK_ELITIST_COPY ="unlock_elitist_copy";

    /** 绿色 */
    public final static String NOTICE_GREEN = "notice_green";
    /**公告颜色 光明阵营**/
    public final static String NOTICE_CAMP_BRIGHT = "notice_camp_bright";
    /**公告颜色 血色阵营**/
    public final static String NOTICE_CAMP_BLOODY = "notice_camp_bloody";
    /**公告颜色 黑暗阵营**/
    public final static String NOTICE_CAMP_DARK = "notice_camp_dark";
    /**公告颜色 中立阵营**/
    public final static String NOTICE_CAMP_NEUTRAL = "notice_camp_neutral";
    /**公告颜色 紫卡**/
    public final static String NOTICE_CARD_PURPLE = "notice_card_purple";
    /**公告颜色 橙卡**/
    public final static String NOTICE_CARD_ORANGE = "notice_card_orange";
    /**公告颜色 红卡**/
    public final static String NOTICE_CARD_RED = "notice_card_red";
    /**公告颜色 官阶1**/
    public final static String NOTICE_OFFICIAL_RANK_1 ="notice_official_rank_1";
    /**公告颜色 官阶2-5**/
    public final static String NOTICE_OFFICIAL_RANK_2_5 ="notice_official_rank_2_5";

    /**充值每日礼包已经购买过**/
    public final static String DAILY_RECHARGE_GIFT_HAS_BUY ="daily_recharge_gift_has_buy";
    /** 已经报名过了阵营战 */
    public final static String CAMP_ACTIVITY_APPLY_ED = "camp_activity_apply_ed";

    /** 您已经存在采集任务 */
    public final static String COLLECT_MISSION_EXIST = "collect_mission_exist";
    /** 您的采集任务不存在 */
    public final static String COLLECT_MISSION_UN_EXIST = "collect_mission_un_exist";
    /** 采集任务进行中 */
    public final static String COLLECT_MISSION_COLLECTING = "collect_mission_collecting";
    /** 剩余采集次数不足 */
    public final static String REMAIN_COLLECT_TIMES_NOT_ENOUGH = "remain_collect_times_not_enough";
    /** 被抢夺次数不足 */
    public final static String BE_GRAB_TIMES_NOT_ENOUGH = "be_grab_times_not_enough";
    /** 抢夺次数不足*/
    public final static String REMAIN_GRAB_TIMES_NOT_ENOUGH = "remain_grab_times_not_enough";
    /** 玩家已领取采集奖励 */
    public final static String PLAYER_HAS_RECEIVER_COLLECT_REWARD = "player_has_receiver_collect_reward";
    /** 采集复仇记录不存在*/
    public final static String COLLECT_REVENGE_RECORD_UN_EXIST = "collect_revenge_record_un_exist";
    /** 炼制材料数量错误*/
    public final static String REFINING_COUNT_ERROR = "refining_count_error";
    /** 炼制材料找不匹配药库*/
    public final static String REFINING_UN_MATCH_MENU = "refining_un_match_menu";
    /** 药水使用达到最大值*/
    public final static String USE_LIQUID_TOUCH_MAX = "use_liquid_touch_max";
    /** 没有存活boss*/
    public final static String ACTIVE_BOSS_UN_EXIST = "active_boss_un_exist";
    /**拍卖已经结束*/
    public final static String AUCTION_ALREADY_OVER = "auction_already_over";
    /**竞拍出价过低*/
    public final static String AUCTION_LOW_BID = "auction_low_bid";
    /**本周充值不足*/
    public final static String AUCTION_RECHARGE_NOT_ENOUGH_WEEK = "auction_recharge_not_enough_week";
    /**拍卖行分红不足*/
    public final static String AUCTION_REWARD_NOT_ENOUGH = "auction_reward_not_enough";

	/** 正在结算中,请稍候再试 */
    public final static String ACTIVITY_CAMP_CLEAR_ING = "activity_camp_clear_ing";
    /** 已经领取过奖励了 */
    public final static String ACTIVITY_CAMP_GET_REWARD_ED = "activity_camp_get_reward_ed";
    /** 没有可领取的奖励 */
    public final static String ACTIVITY_CAMP_NO_REWARD = "activity_camp_no_reward";
    /** 活动还没结束 */
    public final static String ACTIVITY_CAMP_RUN_ING = "activity_camp_run_ing";
    /** 阵营战中不允许进行其它战斗 */
    public final static String ACTIVITY_CAMP_NO_OTHER_OPTION = "activity_camp_no_other_option";
    /** 商城购买已经达到限购上限 */
    public final static String BUY_TIMES_TOUCH_MAX = "buy_times_touch_max";
    /** BOSS挑战次数已经用完 */
    public final static String BOSS_CHALLENGE_TIMES_NOT_ENOUGH = "boss_challenge_times_not_enough";
    /** BOSS战购买次数达到上限*/
    public final static String BOSS_BUY_CHALLENGE_TIME_OVERRUN = "boss_buy_challenge_time_overrun";
    /** 聊天内容不能为空 */
    public final static String CHAT_CONTENT_NOT_EMPTY = "chat_content_not_empty";
    /** 没有此聊天类型 */
    public final static String NO_THIS_CHAT_TYPE = "no_this_chat_type";
    /** 优惠券不存在 */
    public final static String COUPON_UN_EXIST = "coupon_un_exist";
    /** 优惠券已过期 */
    public final static String COUPON_EXPIRED = "coupon_expired";
    /** 优惠券已被使用 */
    public final static String COUPON_HAS_USE = "coupon_has_use";
    /** 充值金额不足，不能使用优惠券 */
    public final static String COUPON_UN_MATCH_CONDITION = "coupon_un_match_condition";
    /** BOSS刷新提示 */
    public final static String BOSS_FRESH_NOTICE = "boss_fresh_notice";
    /** BOSS死亡提示*/
    public final static String BOSS_DEATH_NOTICE = "boss_death_notice";
    /** 活动已过时 */
    public final static String ACTIVITY_TIMEOUT = "activity_timeout";
    /** 当前服务器不在活动内 */
    public final static String SERVER_OUTSIDE_ACTIVITY = "server_outside_activity";
    /** 当前渠道不在活动范围内 */
    public final static String PLATFOTM_OUTSIDE_ACTIVITY = "platform_outside_activity";

    /** 没有通路到达目标地点 */
    public final static String MAP_ROUTE_ERROR = "map_route_error";
    /** 战场争锋该宝箱不存在 */
    public final static String MAP_TASK_BOX_UN_EXIST = "map_task_box_un_exist";
    /** 战场争锋领取宝箱军功不足 */
    public final static String MAP_MILITARY_EXPLOIT_NOT_ENOUGH = "map_military_exploit_not_enough";
    /** 战场争锋这个宝箱已经领取过了 */
    public final static String MAP_TASK_BOX_ALREADY_RECEIVE = "map_task_box_already_receive";
    /** 战场争锋该等级没有这个宝箱 */
    public final static String MAP_TASK_BOX_NOT_BELONG = "map_task_box_not_belong";
    /** 没有可攻击的对象 */
    public final static String MAP_MATCH_NO_TARGET = "map_match_no_target";
    /** 目前不能撤退 */
    public final static String MAP_BREAK_HP_ERROR = "map_break_hp_error";
    /** 被围了，不能突进 */
    public final static String MAP_BREAK_BESET = "map_break_beset";
    /** 部队数不足3倍,无法突进 */
    public final static String MAP_BREAK_ARMY_COUNT_ERROR = "map_break_army_count_error";
    /** 不能撤退到交战城 */
    public final static String MAP_RETREAT_CITY_NOT_PEACE = "map_retreat_city_not_peace";
    /** 不能撤退到敌方阵营的城 */
    public final static String MAP_RETREAT_CITY_NOT_MYSELF = "map_retreat_city_not_myself";
    /** xx氏族/我方 的 xxx 占领了 xx氏族/我方 的 xx城    {0}的{1}占领了{2}的{3} */
    public final static String MAP_OCCUPY_CITY_INFO = "map_occupy_city_info";
    /** 我方 */
    public final static String MAP_MYSELF = "map_myself";
    /** 守卫正在初始化中,请稍候再试 */
    public final static String MAP_GARRISON_BUSY = "map_garrison_busy";


    /**继续完成主线任务解锁该关卡*/
    public final static String MUST_FINISH_TASK = "must_finish_task";

    /** 分享不在进行中 */
    public final static String SHARE_NOT_IN_PROGRESS = "share_not_in_progress";
    /** 分享状态错误 */
    public final static String SHARE_STATE_ERROR = "share_state_error";

    /** 已经进行过膜拜 */
    public final static String MAP_ALREADY_WORSHIP = "map_already_worship";
    /** 膜拜私信内容 */
    public final static String MAP_WORSHIP_CONTENT = "map_worship_content";

    /** 血量已满 */
    public final static String HP_IS_FULL = "hp_is_full";
    /** 状态异常*/
    public final static String STATUS_ERROR = "status_error";
    /** 卡牌未死亡*/
    public final static String CARD_NOT_DIE = "card_not_die";

    /**争霸赛城市掉落不存在*/
    public final static String CITY_DROP_NOT_HAVE = "city_drop_not_have";
    /**玩家不在大地图*/
    public final static String PLAYER_NOT_IN_WORLD_MAP = "player_not_in_world_map";
    /**玩家不在这个城*/
    public final static String PLAYER_NOT_IN_CITY = "player_not_in_city";
    /**不在同一个阵营*/
    public final static String CITY_CAMP_DIFFERENT = "city_camp_different";
    /**城市不处与和平*/
    public final static String CITY_NOT_PEACE = "city_not_peace";
    /**城市掉落获得物品*/
    public final static String CITY_DROP_GET_REWARD = "city_drop_get_reward";
    /**城市掉落使用物品*/
    public final static String CITY_DROP_USE_REWARD = "city_drop_use_reward";
    /**使用军资类道具*/
    public final static String USE_PROP_MILITARY = "use_prop_military";
    /**不是同一个区*/
    public final static String CROSS_SERVICE_QUERY = "cross_service_query";
    /**重置钻石不足*/
    public final static String RESET_ERROR = "Talentclear_ResetError";
    /**条件不足无法升级*/
    public final static String ESCALATION_ERROR = "Talentclear_EscalationError";
    /**条件不足无法升级*/
    public final static String TALENT_CLEAR_RESET = "Talentclear_ResetTips";

    public static String getWord(String key, Object... params)
    {
        return DataFactory.getInstance().getWord(key, params);
    }

    public static String getCampStr(int camp)
    {
        if(camp == SGCommonProto.E_CAMP_TYPE.CAMP_TYPE_BRIGHT_VALUE){

            return DataFactory.getInstance().getWord(WordFactory.NOTICE_CAMP_BRIGHT);

        }else if(camp == SGCommonProto.E_CAMP_TYPE.CAMP_TYPE_BLOODY_VALUE){

            return DataFactory.getInstance().getWord(WordFactory.NOTICE_CAMP_BLOODY);

        }else if(camp == SGCommonProto.E_CAMP_TYPE.CAMP_TYPE_DARK_VALUE){

            return DataFactory.getInstance().getWord(WordFactory.NOTICE_CAMP_DARK);

        }else{

            return DataFactory.getInstance().getWord(WordFactory.NOTICE_CAMP_NEUTRAL);
        }
    }


    public static void check(DataFactory dataFactory)
    {
        try{
            Field[] fields = WordFactory.class.getDeclaredFields();
            String word = null;
            String key = null;
            for(Field field : fields)
            {
                key = field.get(null).toString();
                word = dataFactory.getWord(key);
                if(StringUtils.isNullOrEmpty(word) || word.equals(key))
                {
                    LogUtils.error("Load Word is Null -> key:" + key);
                    dataFactory.addError("Localization", "word", key, 0);
                }
            }
        }catch (Exception e){
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
//        check();
    }


}
